package com.jy.oms.framework.asyn.task.model;

import com.jy.oms.framework.asyn.task.constants.TaskStateEnum;

/**
 * 任务日志
 *
 * @author liuquan
 */
public class TaskLogDto {

    private String taskCode;

    /**
     * 任务参数
     */
    private Object param;

    private String billCode;

    /**
     * 任务结果
     */
    private Object response;

    /**
     * 任务耗时
     */
    private long costTime;

    private TaskStateEnum taskState = TaskStateEnum.DONE;

    public static TaskLogDto create() {
        return new TaskLogDto();
    }

    public String getTaskCode() {
        return taskCode;
    }

    public TaskLogDto setTaskCode(String taskCode) {
        this.taskCode = taskCode;
        return this;
    }

    public Object getParam() {
        return param;
    }

    public TaskLogDto setParam(Object param) {
        this.param = param;
        return this;
    }

    public Object getResponse() {
        return response;
    }

    public TaskLogDto setResponse(Object response) {
        this.response = response;
        return this;
    }

    public long getCostTime() {
        return costTime;
    }

    public TaskLogDto setCostTime(long costTime) {
        this.costTime = costTime;
        return this;
    }

    public String getBillCode() {
        return billCode;
    }

    public TaskLogDto setBillCode(String billCode) {
        this.billCode = billCode;
        return this;
    }

    public TaskStateEnum getTaskState() {
        return taskState;
    }

    public TaskLogDto setTaskState(TaskStateEnum taskState) {
        this.taskState = taskState;
        return this;
    }
}
